package constant;

/**
 * 〈常量类〉<br>
 * 〈功能详细描述〉
 *
 * @author lz
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public interface ResultConstant {

	/**
	 * 状态码
	 */
	class Code {
		/**
		 * 成功
		 */
		public static final Integer SUCCESS = 200;
		/**
		 * 失败
		 */
		public static final Integer FAIL = 400;
		/**
		 * 参数为空
		 */
		public static final Integer PARAM_IS_NULL = 40010;
		/**
		 * contentType不支持
		 */
		public static final Integer CONTENT_TYPE_NONSUPPORT = 40011;
		/**
		 * token时效失效
		 */
		public static final Integer TOKEN_IS_NULL = 50001;
		/**
		 * token解析失败
		 */
		public static final Integer TOKEN_NO_EXIST = 5002;

		public static final Integer OPPENID_ERR = 5003;
		/**
		 * 解密失败
		 */
		public static final Integer DECODE_FAIL = 40014;
		/**
		 * redis token有效期 7天
		 */
		public static final Integer TOEKN_REDIS = 604800;

	}

	/**
	 * 提示消息
	 */
	class Msg {
		public static final String SUCCESS = "success";
		public static final String FAIL = "fail";
		public static final String PARAM_IS_NULL = "未传递任何参数";
		public static final String CONTENT_TYPE_NONSUPPORT = "该contentType本系统暂不支持";
		public static final String TOKEN_IS_NULL = "token为空";
		public static final String TOKEN_NO_EXIST = "token失效或者不存在，重新获取token";
		public static final String DECODE_FAIL = "解密失败";
	}

	/**
	 * 微信小程序
	 */
	class WeCath{
		public static final String APPID = "wx3c9973219b98b70b";
		public static final String SECRET = "b7d45c9c173ea9883fb444017ae1f293";
		public static final String GRANT_TYPE = "authorization_code";
	}

}
